package com.bgy.model;


import com.jfinal.log.Log;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;

/**
 * 记录用户登录信息
 * @author Hegx
 */
public class MmsPosition extends Model<MmsPosition> {
	private static final long serialVersionUID = 6204222383226990020L;
	static Log log = Log.getLog(MmsPosition.class);	
	public static final MmsPosition me = new MmsPosition();	
	
	public boolean save(String username,String lng,String lag,String jingdu){
		String sql = "insert into mms_position(username,position,jingdu)values(" + "'" + username + "',POINTFROMTEXT('POINT(" + lng + " " + lag + ")'),'" + jingdu + "')";
		Db.update(sql);		
		return true;
	}	
}

